html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 250px;
  height: 280px;
  font-size: 100%;
}

/*顶部图标样式*/
#logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 200px;
  margin-top: 20px;
}

#logo {
  height: 24px;
  user-select: none;
}

#logo_text {
  font-size: 16px;
  margin-left: 5px;
  color: #434343;
  font-weight: 600;
}

/*底栏样式*/
#info-wrap {
  width: 100%;
  text-align: center;
  position: fixed;
  bottom: 0;
  margin-bottom: 5%;
}

#info-a {
  color: #434343;
  text-decoration: none;
  font-size: 12px;
}

#versionWrap {
  color: #d1d1d1;
  font-size: 12px;
  margin-top: 4px;
}

/*选项列表样式*/
.set-list {
  margin: 8px;
  padding: 5px;
  max-height: 181px;
  overflow-y: auto;
}

.set-list::-webkit-scrollbar {
  width: 3px; /* 滚动条宽度 */
  margin-right: 5px;
}

.set-list::-webkit-scrollbar-track {
  background: transparent; /* 滚动条轨道背景色 */
}

.set-list::-webkit-scrollbar-thumb {
  background: rgba(114, 114, 114, 0.2); /* 滚动条拇指背景色 */
  border-radius: 4px; /* 滚动条拇指圆角 */
}

.set-list::-webkit-scrollbar-thumb:hover {
  background: #00000050; /* 滚动条拇指悬停时背景色 */
}

.set-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 8px;
  background-color: #f3f4f6;
}

.set-item:hover {
  box-shadow: 0 0 3px rgba(77, 77, 55, 0.270);
}

.set_text {
  font-size: 15px;
  color: #4e5155;
}

.set-item:last-child {
  border-bottom: none;
}

/*开关样式*/
.switch {
  position: relative;
  display: inline-block;
  width: 40px; /* 缩小宽度 */
  height: 24px; /* 缩小高度 */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.1s;
}

.switch label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.1s;
}

input:checked + label {
  background-color: #2196f3;
}

input:checked + label:before {
  transform: translateX(16px);
}

/*下拉菜单*/
.set-item label {
  display: block;
}
.set-item select {
  font-size: 15px;
  border: 0px;
  border-radius: 5px;
  background-color: #f3f4f6;
  color: #4e5155;
  width: 100%;
  outline: none;
}

/*输入框样式*/
.set-item input {
  color: #4e5155;
}

.set-item input {
  width: 100%;
  background-color: #00000000;
  border: 0;
  outline: none;
  font-size: 15px;
  box-sizing: border-box;
}

.set-item button {
  width: 100%;
  height: 35px;
  font-size: 15px;
  border: none;
  color: #4e5155;
  background-color: #00000000;
  transition: background-color 0.1s;
}

.set-item button:active {
  color: #ffffff;
}

.set-item:has(button){
  padding: 0;
}

.set-item:has(button):active {
  background-color: #2196f3;
  color: #ffffff;
}

/*默认隐藏所有模型的列表*/
.modelSet {
  display: none;
}

/*深色模式 */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #141516;
  }
  .text {
    color: #ffffff !important;
  }

  .switch label {
    background-color: #141516;
  }

  .switch label:before {
    background-color: #2d2e30;
  }

  .set-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    background-color: #2d2e30;
  }

  .set-item:hover {
    box-shadow: 0 0 3px rgba(0, 106, 255, 0.500);
  }

  .set_text {
    font-size: 15px;
    color: #c4c4c4;
  }
  input:checked + label {
    background-color: #155488;
  }

  .set-item input {
    color: #ffffff;
  }

  .set-item select {
    background-color: #2d2e30;
    color: #c4c4c4;
  }
  /* 在滚动条悬停时 */
  .set-list::-webkit-scrollbar-thumb:hover {
    background: #ffffff50;
  }

  .set-item button {
    color: #c0c0c0;
  }

  .set-item:has(button):active {
    background-color: #155488;
  }
  
}